package com.sh;

import com.sh.bean.Camera;
import com.sh.springframework.ApplicationContext;

/**
 * @Auther: sh
 * @Version 1.0
 * @Description:
 */
public class Main {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ApplicationContext("/spring.xml");
        Camera bean = applicationContext.getBean("camera");
        System.out.println(bean);
        System.out.println(bean.getBrand());
    }
}

